﻿using ZeroSum.Domain.Entities;

namespace ZeroSum.Domain.Repositories;

/// <summary>
///     抽象查询层
/// </summary>
public interface IQuery<TEntity>
    where TEntity : IEntity
{
    /// <summary>
    ///     分页操作
    /// </summary>
    /// <param name="page"></param>
    /// <param name="size"></param>
    /// <returns></returns>
    IQuery<TEntity> Paged(int page, int size);
}